<?php echo validation_errors(); ?>

<div class="contentcontainer">
    <div class="headings altheading">
        <h2>Menu</h2>
    </div>
    <div class="contentbox">
        <?php 
            $attributes = array('id' => 'frm_insert_ar','onsubmit'=>'return Form.validateInsertRole(this)');
            print form_open($action,$attributes);
        ?>
            <p>
                <label for="textfield"><strong>Menu Name:</strong></label>
                <input type="text" name="menu_name" value="<?php print ( isset($menu_data) && $menu_data['title'] != '' ) ? $menu_data['title'] : set_value('menu_name'); ?>" id="role_id" class="inputbox required" > <br />
                <span class="role_id_required smltxt red" style="display: none;">loi ko de trong</span>
            </p>
            <p>
                <label for="textfield"><strong>Link:</strong></label>
                <input readonly="readonly" type="text" name="menu_link" value="<?php print ( isset($menu_data) && $menu_data['link'] != '' ) ? $menu_data['link'] : set_value('description'); ?>" id="description" class="inputbox required insert-value" ><a href="<?php print site_url('menu/chooseMenu') ?>" class="btn input-choose">...</a> <br />
                <span class="description_required smltxt red" style="display: none;">phai dien day du</span>
            </p>
            
            <p>
                <select size="10" class="inputbox" id="parent" name="parent">
                    <option selected="selected" value="0">Top</option>
                    <?php print $html_option_selectbox;?>
                </select>
            </p>

            <p><input type="submit" value="Submit" class="btn" ></p>
        </form>
    </div>
</div>